d = {'Adam':95,'Lisa':85,'Bart':59}

tds = ['<tr><td>%s</td><td>%s</td></tr>' %(name,score) for name,score in d.iteritems()]

print '<table>'
print '<tr><th>Name</th><th>Score</th><tr>'
print '\n'.join(tds)
print '</table>'
